home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / esc.jar / com / extensibility / xml / URIUrnScheme.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-06-30  |  2.6 KB  |  95 lines

  1. package com.extensibility.xml;
  2.  
  3. import com.extensibility.plugin.PluginRegistry;
  4. import com.extensibility.plugin.api.URIScheme;
  5. import com.extensibility.plugin.api.URISchemeAdapter;
  6. import java.io.IOException;
  7. import java.io.InputStream;
  8. import java.io.OutputStream;
  9. import java.io.Reader;
  10. import java.io.Writer;
  11.  
  12. public class URIUrnScheme extends URISchemeAdapter {
  13.    private String urn;
  14.  
  15.    public static void registerPlugin(PluginRegistry var0) {
  16.       var0.registerPlugin("URIScheme10", Class.forName("com.extensibility.xml.URIUrnScheme"), "URIUrnScheme", 65537);
  17.    }
  18.  
  19.    public URIUrnScheme() {
  20.       this.urn = null;
  21.    }
  22.  
  23.    public URIUrnScheme(String var1) {
  24.       this.urn = var1;
  25.    }
  26.  
  27.    public void registerSchemes(URIScheme.Manager var1) {
  28.       var1.registerScheme("urn", (Class)null, this);
  29.    }
  30.  
  31.    public URIScheme construct(String var1, String var2) {
  32.       return new URIUrnScheme(var2);
  33.    }
  34.  
  35.    public URIScheme construct(Object var1) {
  36.       return null;
  37.    }
  38.  
  39.    public URIScheme construct(String var1) {
  40.       return new URIUrnScheme(var1);
  41.    }
  42.  
  43.    public String getScheme() {
  44.       return "urn";
  45.    }
  46.  
  47.    public String getUIName() {
  48.       return this.urn;
  49.    }
  50.  
  51.    public InputStream createInputStream() throws IOException {
  52.       return null;
  53.    }
  54.  
  55.    public Reader createReader() throws IOException {
  56.       return null;
  57.    }
  58.  
  59.    public OutputStream createOutputStream() throws IOException {
  60.       return null;
  61.    }
  62.  
  63.    public Writer createWriter() throws IOException {
  64.       return null;
  65.    }
  66.  
  67.    public boolean exists() {
  68.       return false;
  69.    }
  70.  
  71.    public boolean equals(URIScheme var1) {
  72.       URIUrnScheme var2 = (URIUrnScheme)var1;
  73.       return this.urn.equals(var2.urn);
  74.    }
  75.  
  76.    public int compareTo(URIScheme var1) {
  77.       URIUrnScheme var2 = (URIUrnScheme)var1;
  78.       return this.urn.compareTo(var2.urn);
  79.    }
  80.  
  81.    public String getShortName() {
  82.       String var1 = this.urn;
  83.       int var2 = var1.lastIndexOf(":");
  84.       if (var2 >= 0 && var2 + 1 < var1.length()) {
  85.          var1 = var1.substring(var2 + 1);
  86.       }
  87.  
  88.       return var1;
  89.    }
  90.  
  91.    public String getFullPath() {
  92.       return this.urn;
  93.    }
  94. }
  95.